<%@ page contentType="text/html;charset=UTF-8" isErrorPage="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="org.slf4j.Logger,org.slf4j.LoggerFactory" %>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%	
	//设置返回码200，避免浏览器自带的错误页面
	response.setStatus(200);
	//记录日志
	Logger logger = LoggerFactory.getLogger("500.jsp");
	logger.error(exception.getMessage(), exception);
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>500 - 系统内部错误</title>
    <style>
        body{
            background: url("${ctx}/static/project/images/main_bg.jpg") repeat-x scroll center top rgb(55, 127, 203);
        }
        .error{
            width: 740px;
            height: 400px;
            background: none repeat scroll 0% 0% rgb(255, 255, 255);
            margin: 100px auto 0;
            position: relative;
        }
        h2{
            font-size: 37px;
            font-weight: bold;
            margin-left: 60px;
            padding-top: 60px;
            color: rgb(0, 120, 182);
        }
        a{
            font-weight: bold;
            margin-left: 60px;

            color: rgb(0, 120, 182);
        }
        img{
            position: absolute;
            right: 0px;
            bottom: 0px;
        }
    </style>
</head>

<body>
	<h2>500 - 系统发生内部错误,请勿慌张及时联系管理员。</h2>
    <p><a href="<c:url value="/home"/>">返回首页</a></p>
    <img class="ui-widget-img" src="${ctx}/static/project/images/error.png"/>
</body>
</html>
